package com.vhall.component.controller.redpacket.facade;

import com.vhall.component.entity.redpacket.vo.RedPacketSettingVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author yongzheng.xu
 * @date 2021/7/8 20:00
 */
@FeignClient(value = "RedPacketSettingFacade", path = "/v4/redpacket")
public interface RedPacketSettingFacade {

    /**
     * 设置红包信息
     *
     * @param vo 设置信息
     * @return 房间地址
     */
    @PostMapping("/setting")
    RedPacketSettingVO setting(@Validated RedPacketSettingVO vo);
}
